/*global Vue*/
import Router from 'vue-router'
import Login from '@/components/Login'
import Home from '@/components/Home'
import Search from '@/components/Search/Search'
import Register from '@/components/Register/Register'
import Detail from '@/components/Detail/Detail'
import Shop from '@/components/Shop/Shop'
import Cart from '@/components/Cart/Cart'
import Personal from '@/components/Personal/Personal'
import Category from '@/components/Category/Category'
import Productdetail from '@/components/Productdetail/Productdetail'

import Collect from '@/components/PersonalChildren/Collect'
import Concat from '@/components/PersonalChildren/Concat'
import Echarts from '@/components/PersonalChildren/Echarts'
import FootPrint from '@/components/PersonalChildren/FootPrint'
import History from '@/components/PersonalChildren/History'
import MyDict from '@/components/PersonalChildren/MyDict'
import Payment from '@/components/PersonalChildren/Payment'
import Wallet from '@/components/PersonalChildren/Wallet'
import Setting from '@/components/PersonalChildren/Setting'
import Address from '@/components/PersonalChildren/Address'
export default new Router ({
  routes: [
    {
      path: '/',
      component:Login,
    },
    {
      path: '/home',
      component: Home,
      meta: { requiresAuth: true }
    },
    {
      path: '/shop',
      component: Shop,
      meta: { requiresAuth: true }
    },
    {
      path: '/cart',
      component: Cart,
      meta: { requiresAuth: true }
    },
    {
      path: '/personal',
      component: Personal,
      meta: { requiresAuth: true }
    },
    {
      path: '/register',
      component: Register,
    },
    {
      path: '/search',
      component: Search,
    },
    {
      path:'/detail/:id',
      component:Detail
    },
    {
      path:'/category/:id',
      component:Category
    },
    {
      path:'/productdetail/:id',
      component:Productdetail
    },


    {
      path:'/personal/history',
      component:History
    },
    {
      path:'/personal/concat',
      component:Concat
    },
    {
      path:'/personal/collect',
      component:Collect
    },
    {
      path:'/personal/myDict',
      component:MyDict
    },
    {
      path:'/personal/setting',
      component:Setting
    },
    {
      path:'/personal/payment',
      component:Payment
    },
    {
      path:'/personal/wallet',
      component:Wallet
    },
    {
      path:'/personal/footPrint',
      component:FootPrint
    },
    {
      path:'/personal/echarts',
      component:Echarts
    },
    {
      path:'/personal/address',
      component:Address
    },


  ]
})
